-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LogIndex and TxIndex into logs/event response body #862
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #862 +/- ##
==========================================
+ Coverage 60.62% 60.65% +0.03%
==========================================
Files 215 215
Lines 23099 23139 +40
==========================================
+ Hits 14003 14035 +32
- Misses 7947 7953 +6
- Partials 1149 1151 +2 ☔ View full report in Codecov by Sentry. |
api/doc/thor.yaml
Outdated
nullable: true | ||
example: 1 | ||
logIndex: | ||
descrption: The index of the log in the receipt's outputs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to highlight it's an overall index among all clauses.
@@ -504,7 +507,7 @@ func (w *Writer) Write(b *block.Block, receipts tx.Receipts) error { | |||
|
|||
if err := w.exec( | |||
query, | |||
newSequence(blockNum, eventCount), | |||
newSequence(blockNum, uint32(txIndex), eventCount), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventCount
and transferCount
needs to be reset for every receipt/tx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the logic of insert blockID
into ref needs to be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventCount
andtransferCount
needs to be reset for every receipt/tx.
Are we changing the indexes logic? Before the count
was not reset to 0 every receipt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think by adding txIndex
we are trying to align with ethereum's filter API, so we need to change the concept of logIndex
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blockID insertion logic updated
@paologalligit possible to trigger CI? You may have to rebase with target branch. I think @libotony had issues on his mainDB branch, not sure how he solved |
6edc877
to
b74f714
Compare
Here, #868 (comment)
|
@paologalligit I think the |
fbca57e
to
297ffd5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm !
Description
This PR adds
logIndex
andtxIndex
fields intologs/event
response body.GH Issue
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist: